package com.woniuxy.cq.phrase3.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.cq.phrase3.entity.Sbp;
import com.woniuxy.cq.phrase3.entity.Sx;
import com.woniuxy.cq.phrase3.dao.SxMapper;
import com.woniuxy.cq.phrase3.service.ISxService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-07
 */
@Service
public class SxServiceImpl extends ServiceImpl<SxMapper, Sx> implements ISxService {
    @Autowired
    private SxMapper sxMapper;
    @Override
    public IPage<Sbp> pageQuery2(int pageIndex, int pageSize, Integer userId, String sxStatus, String sxUrgency) {

        Page<Sbp> page = new Page<Sbp>(pageIndex,pageSize);

        IPage<Sbp> sxIPage =  sxMapper.pageQuerySx(page,userId,sxStatus,sxUrgency);
        return sxIPage;
    }
}
